{% extends "EMNewsBundle::layout.html.twig" %}
{% block title 'News - Create Category' %}
{% block middlenav%}
<div class="middleNav">
    	<ul>
        	<li class="iList"><a href="{{ path('em_category_list') }}" title=""><span>List</span></a></li>
		</ul>
    </div>
{% endblock%}


{% block content %}
    	<div class="title"><h5>Create Categories </h5></div>
        
   
        
        <!-- Form -->
<form action="{{ path('em_category') }}" method="post" id="valid" class="mainForm">
<fieldset>
    <div class="widget">    
	 <div class="head"><h5 class="iHome">Create category</h5></div>
         {% if status_form==1 %}
	 <div class="nNote nSuccess hideit">
                <p><strong>SUCCESS: </strong> Category created.</p>
            </div>
	
	{% elseif status_form==2 %}
	<div class="nNote nFailure hideit">
		<p><strong>FAILURE: </strong>Oops sorry. Something was wrong, try again.</p>
	</div>
         {% elseif status_form==3 %}
	<div class="nNote nFailure hideit">
		<p><strong>FAILURE: </strong>You cannot add more than 4 levels .</p>
	</div>
     
       
	 {% endif %}
	 
    {% block form_row %}
	
	<div class="rowElem">
		
        {{ form_widget(form) }}
	</div>
	<div class="fix"></div>
	{% endblock form_row %}
	
    <input type="submit" value="New Category" class="greyishBtn submitForm" />
    <div class="fix"></div>
	</div>
	</fieldset>
</form>
    


{% endblock %}			
              